package org.log4jconfig.java.editor.util;

import org.eclipse.core.runtime.Status;
import org.log4jconfig.java.editor.Log4jConfigJavaEditorIntegrationPlugin;

public class Logger {
	
	public static void error(String message, Throwable t) {
		Log4jConfigJavaEditorIntegrationPlugin.getDefault().getLog().log(
				new Status(Status.ERROR, Log4jConfigJavaEditorIntegrationPlugin.PLUGIN_ID,
						message, t));
	}

	public static void warn(String message) {
		Log4jConfigJavaEditorIntegrationPlugin.getDefault().getLog().log(
				new Status(Status.WARNING, Log4jConfigJavaEditorIntegrationPlugin.PLUGIN_ID,
						message));
	}

	public static void info(String message) {
		Log4jConfigJavaEditorIntegrationPlugin.getDefault().getLog().log(
				new Status(Status.INFO, Log4jConfigJavaEditorIntegrationPlugin.PLUGIN_ID,
						message));
	}

	public static void error(String message) {
		Log4jConfigJavaEditorIntegrationPlugin.getDefault().getLog().log(
				new Status(Status.ERROR, Log4jConfigJavaEditorIntegrationPlugin.PLUGIN_ID,
						message));
	}
	
}
